﻿using System.Data;

namespace Azalea.ORMap
{
    public interface IDbContext
    {
        IDbFactory DbFactory { get; }
        IDbInfo DbInfo { get; }

        DataSet GetDbSchema();
        DataTable GetTableSchema(string tableName);

        IDbConnection OpenConnection(bool open);
        void CloseConnection(IDbConnection connection);
    }
}